load("@rules_proto//proto:defs.bzl", "proto_library")
load("//proto/prost:defs.bzl", "rust_prost_library")
load("//rust:defs.bzl", "rust_test")

package(default_visibility = ["//proto/prost/private/tests:__subpackages__"])

proto_library(
    name = "types_proto",
    srcs = [
        "types.proto",
    ],
    strip_import_prefix = "/proto/prost/private/tests",
)

rust_prost_library(
    name = "types_rs_proto",
    proto = ":types_proto",
)

rust_test(
    name = "types_test",
    srcs = ["types_test.rs"],
    edition = "2021",
    deps = [
        ":types_rs_proto",
    ],
)
